<?php
$this->pageTitle=Yii::app()->name . ' - Photo';
$this->breadcrumbs=array(
	'Photo',
);
?>
<table>
<tr>
<div id="mainmenu">
		<?php 
		$this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'动漫游戏', 'url'=>array('/site/photo&id=1')),
				array('label'=>'世界名车', 'url'=>array('/site/photo&id=2')),
				array('label'=>'体育运动', 'url'=>array('/site/photo&id=3')),
				array('label'=>'自然风光', 'url'=>array('/site/photo&id=4'))
			),
		)); ?>
	</div>
</tr>
<tr>
<td>
<?php $this->widget('application.extensions.FBGallery.FBGallery', array('pid'=>$_GET['id'])); ?>
<?php echo $content; ?>
</td>
<td class='formCfg'>
<div id='mainmenu'>
壁纸排行
</div>
<div class='content'>
<?php
$dataProvider=new CActiveDataProvider('PhotoClick',array( 
                                                   'pagination'=>array('pageSize'=>35),
                                                   )
                   );
$this->widget('zii.widgets.CListView', array(
    'dataProvider'=>$dataProvider,
    'itemView'=>'_photoclickview',   // refers to the partial view named '_post'
    'template'=>'{items}',
    'sortableAttributes'=>array(
        'count'
    ),
));?>
</div>
</td>
</tr>
</table>
